home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™94 / Talks & Papers / Michael D. Crawford↵ / Word Services SDK 1.0.5 / Read Me First! < prev    next >
Text File  |  1994-05-10  |  3KB  |  46 lines

  1. Getting Started with Word Services
  2.  
  3. Michael D. Crawford
  4. Working Software, Inc.
  5. AppleLink D1620 
  6. Compuserve 76004,2072
  7. America Online WorkingSW
  8.  
  9. If you have a previous version of Writeswell Jr. that is earlier than 1.0d8, you must trash the Writeswell Jr. Preferences file.  It is in the Preferences folder.  Otherwise you will get an error message when Writeswell Jr. starts up.
  10.  
  11. The source is included to the text editor, which may be freely distributed.
  12.  
  13. We have a new version of Writeswell Jr. that will open TeachText-style read only documents with pictures.  We encourage developers to use it to open Read Me files on product disks and billboard postings - for free!  Send me e-mail to get it.  It will is available on online services.  Look for Writeswell Jr. 1.1.1 or later.
  14.  
  15. The Spellswell 7 Demo is provided to aid you in developing Word Services applications.  It will replace up to three words each time the application is launched.  Contact Working Software to obtain the full Spellswell 7 application.
  16.  
  17. Double-click "Spellswell 7 Demo".  Then drag "testtext" onto the "Writeswell Jr." icon.   Select "Get New Service" from Writeswell Jr.'s menu.  Select the speller in the browser.  
  18.  
  19. This adds "Check Spelling" to the Services Menu.    Then you can use this menu item to check spelling.  After this initial setup the menu item will launch the speller whether  it is running in the background or not, making it invisible to the user that the speller is not a built-in menu item.
  20.   
  21. Position the speller's window so you can see the text in Writeswell Jr., and hit skip or replace as you like.
  22.  
  23. The technique that I use for handling Apple Events is the "Object First Approach" described by Richard Clark in the May, 1992 issue of d e v e l o p, in the article "Apple Event Objects and You." 
  24.  
  25. I call this an "inverted" handling method myself in the code.  I resolve the object specifier first (in a wildcard handler), and then pass the token to a dispatcher that calls the functions to actually do the event.  The "normal" way to do it is to install a handler for each event, resolve the object specifier, and then call code to do the event for each type.  The object first approach allows new data types to be added in a simpler manner.
  26.  
  27. I highly recommend reading Richard's article while studying this code.
  28.  
  29. The Object Support Library on this disk is converted from the MPW OSL using the ThinkC "oConv" utility.  If you want to do the conversion yourself, use the vocabulary file in the Apple Libraries folder.  If you convert without using the vocabulary file, the OSL function names will all be uppercase.
  30.  
  31. Enjoy!
  32.  
  33. Michael D. Crawford
  34. Working Software, Inc.
  35. PO Box 1844
  36. Santa Cruz, CA 95061-1844
  37. (408) 423-5696
  38. (408) 423-5699 Fax
  39. (800) 229-9675
  40. AppleLink D1620
  41. Compuserve 76004,2072
  42. America Online WorkingSW
  43.  
  44.  
  45.  
  46.